package j02neibulei;

class Outer{

    //成员内部类
    class Inner0{

    }
    void f0(){
        Inner0 i00 = new Inner0();
        System.out.println("i00 = " + i00);
    }
    //静态内部类
    static class Inner1{
        int age = 7;
        void hit(){

        }
    }

    void f1(){
        Inner1 i11 = new Inner1();
        System.out.println("i11 = " + i11);
    }
}

public class J1 {
    public static void main(String[] args) {
        Outer.Inner1 i1 = new Outer.Inner1();
        System.out.println("i1 = " + i1);
        System.out.println("======");
        new Outer().f1();
        System.out.println("==成员内部类==");
        Outer.Inner0 i0 = new Outer().new Inner0();
        System.out.println("i0 = " + i0);

        new Outer().f0();
    }
}
